package com.jr.controller;


import com.jr.pojo.SearchJob;
import com.jr.service.UserAndPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/UserPosts/")
public class UserPostsController {
    @Autowired
    private UserAndPositionService userAndPositionService;

    @RequestMapping("ConcernOk")
    public Boolean updataConcernOk(SearchJob searchJob){
        return userAndPositionService.updateConcernOk(searchJob);
    }
    @RequestMapping("ConcernNo")
    public Boolean updataConcernNo(SearchJob searchJob){
        return userAndPositionService.updateConcernNo(searchJob);
    }

    @RequestMapping("ApplyOk")
    public Boolean updateApplyOk(SearchJob searchJob){
        return userAndPositionService.updateApplyOk(searchJob);
    }
    @RequestMapping("ApplyNo")
    public Boolean updateApplyNo(SearchJob searchJob){
        return userAndPositionService.updateApplyNo(searchJob);
    }

}
